#ifndef __MYSTRING_H__
#define __MYSTRING_H__
#define MAX 1024

#define Init_MyString(obj,string) MyString obj;\
                                    Initialize(&obj,string)
typedef struct String MyString;
struct String{
    char string[MAX];

    int size;

    void (*print)(MyString *obj);

    int (*Size)(MyString *obj);

    int (*IsEqual)(MyString *obj1,MyString *obj2);

    int (*IsContains)(MyString *dest, MyString *src);

    char* (*AtIndex)(MyString *obj, int index);

    void (*RemoveString)(MyString *obj, const char* str);

    void (*Insert)(MyString *obj, const char* str, int index);

};

void Initialize(MyString *obj, const char *str);


#endif
